<?php
error_reporting(7);
$template_name = "cate.html";
$cateid=$_GET["cid"];
$area=$_GET["area"];
require "common.php";
require "tools/class.weixin.php";
//*****生成分类数据//
require_once "tools/tree/sort.class.php";
$tree = new SortClass($DB);
$tree->showt_weixin_cate_list(CATEPARENTID);
$treelist=$tree->showhtml;
//*****生成分类数据结束//
$weixin=new WEIXIN($DB);
$where=array("cate"=>$cateid,"area"=>$area);
$results=$weixin->lists_where($where);
$iguesslike=$weixin->iguesslike($keyword);
$tpl->assign($weixin->pager->result);
$tpl->assign("results",$results);
$tpl->assign("cate_tree",$treelist);
$tpl->assign("iguesslike",$iguesslike);
$tpl->output();

?>